"use strict";
const BaseImpl = require("../basics/clz/baseimpl");
const TrackModel = require("../model/track");

/**
 * 通用服务
 */
class HomeImpl extends BaseImpl {

  /**
   * 添加埋点
   * @param {Object} params 
   */
  async addTrack(params) {
    return await TrackModel.getInstant(this.cloud).insertOne({ data: JSON.stringify(params) });
  }

}

module.exports = HomeImpl;